import { defineAmisPlugin, getBaseFormItem, getInputTpl } from '../../base/util';
import component from './fc';
import type { IProps } from './interface';

export default defineAmisPlugin<IProps>(() => {
    return {
        component,
        options: getBaseFormItem({
            type: 'input', order: -6989, name: '文本框', icon: 'FieldStringOutlined',xtype:'Input',
            tpls: [
                getInputTpl('prefix', { label: "前缀" }),
                getInputTpl('suffix', { label: "后缀" }),
                getInputTpl('placeholder', { label: "提示文本" }),
                getInputTpl('maxLength', { label: "最大文字数" ,type:'number'}),   
                getInputTpl('extra', { label: "额外内容" }),
            ]
        })
    };
});
